# -*- coding:utf-8 -*-
# Author: Bernard
# Date: 2021-7-14

def printSubSet(arr):
    ans = []
    sz = len(arr)
    for l in range(sz):
        for r in range(l, sz):
            ans.append(arr[l:r+1])
    print(ans)


printSubSet([1, 2, 3, 4])
